package cn.rongdao.jrkabao.ui.main.mainfragment.cashadvance.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;


import com.mifengkong.frtools.ui.adapter.recyclerview.FRBaseRecyclerAdapter;


import cn.rongdao.jrkabao.R;
import cn.rongdao.jrkabao.bean.cashadvance.HomeBean;
import cn.rongdao.jrkabao.ui.main.mainfragment.cashadvance.viewholder.LoanViewHolder;

/**
 * Created by WANG on 17/12/19.
 */

public class LoanAdapter extends FRBaseRecyclerAdapter<HomeBean.LoanCommendBean,LoanViewHolder> {
    private Context context;

    public LoanAdapter(Context context, OnItemClickListener<LoanViewHolder> listener) {
        super(context, listener);
        this.context = context;
    }

    @Override
    public LoanViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(context).inflate(R.layout.item_loan_item, parent, false);
        return new LoanViewHolder(view);
    }
}
